/*******************************************************************************
 * Copyright (c) 2004, 2005 Jean-Michel Lemieux, Jeff McAffer and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Hyperbola is an RCP application developed for the book
 *     Eclipse Rich Client Platform -
 *         Designing, Coding, and Packaging Java Applications
 *         (http://eclipsercp.org)
 * Contributors:
 *     Jean-Michel Lemieux and Jeff McAffer - initial implementation
 *******************************************************************************/
package org.reliablesource.prism.product.workbench;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.IViewLayout;
import org.reliablesource.prism.ui.workbench.views.ImageViewPart;

public class DefaultPerspective implements IPerspectiveFactory {
	
	public final static String ID = "org.reliablesource.prism.ui.workbench.defaultPerspective";
	
	public void createInitialLayout(IPageLayout layout) {
		layout.setEditorAreaVisible(false);
		layout.addStandaloneView(ImageViewPart.VIEW_ID, false /* don't show title */, IPageLayout.LEFT, 0.35f, layout.getEditorArea());
		IViewLayout viewLayout = layout.getViewLayout(ImageViewPart.VIEW_ID);
		viewLayout.setCloseable(false);
	}
}
